package com.wei.jvm;

/**
 * @Author :sunwei
 * @Description:
 * @Date create in 20:25  2021/3/23
 * @Modified by:
 */
public class OperandStackTest {
    public void testMain(){
        int i = 10;
        int sum = getSum(i);
    }

    public int getSum(int i) {
        int j=10;
        int k = i+j;
        return k;
    }

    public void localVariablesTest(int i,Object obj,long l,short s){
        System.out.println(i);
        System.out.println(obj);
        System.out.println(l);
        System.out.println(s);
    }


    public int addTest(){
        int i=10;
        i = i++;
        return i;
    }


    public void addTest2(){
        int i=10;
        int k = ++i;

        int j=10;
        int m = j++;
    }






}
